// 售货机  全部接口
import request from '@/utils/request'

// 获取售货机货道详情 Path： /api/vm-service/channel/channelList/:innerCode Method： GET
export const VendingMachine = (innerCode) => {
  return request({
    url: `/api/vm-service/channel/channelList/${innerCode}`
  })
}

// 搜索售货机(售货机列表)
export const searchVendingMachine = (params) => {
  return request({
    url: '/api/vm-service/vm/search',
    params
  })
}

// 售货机类型列表(搜索)
export const searchVmType = (params) => {
  return request({
    url: '/api/vm-service/vmType/search',
    params
  })
}

// 新增售货机
export const addvm = (data) => {
  return request({
    url: '/api/vm-service/vm',
    method: 'POST',
    data
  })
}
